//
//  HotGodCell.m
//  MoXiProject
//
//  Created by 周筱雯 on 2017/6/30.
//  Copyright © 2017年 周筱雯. All rights reserved.
//

#import "HotGodCell.h"
#import "GreatGodModel.h"

@interface HotGodCell()
@property (weak, nonatomic) IBOutlet UIImageView *greatImg;
@property (weak, nonatomic) IBOutlet UILabel *greatName;
@property (weak, nonatomic) IBOutlet UILabel *greatSign;

@property (weak, nonatomic) IBOutlet UIImageView *leveImg;
@end

@implementation HotGodCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    
    self.greatImg.layer.cornerRadius = self.greatImg.width / 2;
    self.greatImg.layer.masksToBounds = YES;
}

-(void) setGreatCellDataSrouce:(GreatGodModel *) model
{

    [self.greatName setText:model.greatusername];
    [self.greatImg sd_setImageWithURL:[NSURL URLWithString:model.greatimgPath] placeholderImage:DEF_NORMAL_DEFAULT_IMAGE];
    [self.greatSign setText:model.greatuserSign];
    [self.leveImg setImage:[UIImage imageNamed:[NSString stringWithFormat:@"V%@",model.greatlevelFlg]]];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
